<template>
  <div id="app">
    <!-- <transition> -->
    <router-view></router-view>
    <!-- </transition> -->
    <FooterGuide v-show="!$route.meta.hiddenFooter" />
  </div>
</template>
 
<script>
import FooterGuide from "./components/FooterGuide/FooterGuide.vue";
import { reqShopType } from "./api/index";
import { mapActions } from "vuex";

export default {
  data() {
    return {};
  },
  components: {
    FooterGuide
  },
  methods: {
    ...mapActions(["getUserInfo"])
  },
  created() {
    this.getUserInfo();
  }
};
</script>
 
<style scoped lang = "stylus" rel="stylesheet/stylus">
.v-enter {
  opacity: 0;
  position: absolute;
  transform: translateX(100%);
}

.v-leave-to {
  opacity: 0;
  position: absolute;
  transform: translateX(-100%);
}

.v-enter-active, .v-leave-active {
  transition: all 0.3s;
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
}
</style>